import request from '@/utils/request'
import apis from './'

export function getSchedule (uid, month) {
  return request({
    url: `${apis.ScheduleList}?uid=${uid}&month=${month}`,
    method: 'get'
  })
}

export function getAddSchedule () {
  return request({
    url: apis.AddSchedule,
    method: 'get'
  })
}

export function postAddSchedule (data) {
  return request({
    url: apis.AddSchedule,
    method: 'post',
    data: data
  })
}

export function delSchedule (id) {
  return request({
    url: `${apis.DelSchedule}?id=${id}`,
    method: 'get'
  })
}

export function getReceive () {
  return request({
    url: apis.ReceiveBase,
    method: 'get'
  })
}

export function postReceive (data) {
  return request({
    url: apis.ReceiveBase,
    method: 'post',
    data: data
  })
}

export function getReceive0 () {
  return request({
    url: apis.ReceiveBase0,
    method: 'get'
  })
}

export function postReceive0 (data) {
  return request({
    url: apis.ReceiveBase0,
    method: 'post',
    data: data
  })
}
